'use strict';
let Koa=require('koa');
let bodyParser=require('koa-bodyparser');
let statics=require('koa-static');
let control=require('./controllers')
let templating=require('./templating')

let app=new Koa();

app.use(statics(__dirname,'/static'));

app.use(statics(__dirname,'/views'));

app.use(bodyParser());

app.use(templating);

app.use(control());

let port=520;

app.listen(port);

console.log(`http://localhost:${port}`);